Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify logic for cookie consent #1241

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

hanbyul-here
Copy link
Collaborator

@hanbyul-here hanbyul-here commented Nov 5, 2024

First of all, I apologize that I could not make this suggestion as a part of review. It is still challenging for me to make a suggestion without actually touching the code.

This PR handles several things. The first to fix is cookieconsent form gradually disappears on the first page load. The second is not depending on session storage - mainly because I feel like it was diverging the logic flow - but if I am missing anything, please feel free to close this. The third is moving out the utility function outside of the component, so it doesn't have to be declared as a dependency of useEffect hook.

Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for veda-ui ready!

Name Link
🔨 Latest commit 2682238
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui/deploys/6729803769033d0008ef4cd2
😎 Deploy Preview https://deploy-preview-1241--veda-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@snmln snmln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good thank you Hanbyul!

@snmln snmln merged commit 598ac2a into 1171-Cookie-Consent---Clean-up Nov 5, 2024
9 checks passed
@snmln snmln deleted the cookie-logic-suggestion branch November 5, 2024 19:05
@AliceR AliceR mentioned this pull request Nov 11, 2024
AliceR added a commit that referenced this pull request Nov 12, 2024
## 🎉 Features
* Card image/description independent of hero image/description by
@dzole0311 in #1244

## 🚀 Improvements
* Cookie consent code cleanup by @snmln in
#1199 , and @hanbyul-here in
#1240 , and @hanbyul-here in
#1241
* Add ADR about design system change by @j08lue in
#890
* Update condition to run playwright tests on release branches by
@dzole0311 in #1228
* Update STYLE_GUIDE.md by @AliceR in
#1227
* Fix lint configuration by @AliceR in
#1219
* Add tests for the AOI feature specification by @AliceR in
#1216
* Set data catalog filters to be closed by default by @vgeorge in
#1243
* Update tsconfig and make nav interfaces exposable for consumption by
@sandrahoang686 in #1223

## 🐛 Fixes
* Hotfix to hide the external link badge from cards by @dzole0311 in
#1231

## New Contributors
* @vgeorge made their first contribution in
#1243

**Full Changelog**:
v5.9.0...v5.10.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants